import React from 'react';
import { Router, Route, Switch } from 'dva/router';

import Login from './routes/LoginPage/Login';
import Indexpage from './routes/Indexpage.jsx';
import EchartPage from './routes/Echart/EchartPage';

function RouterConfig({ history }) {
  return (
    <Router history={history}>
      <Switch>
        <Route path="/login" exact component={Login} />
        <Route path="/indexpage"  component={Indexpage} />
        {/* <Route path="/EchartPage" exact component={EchartPage} /> */}
      </Switch>
  
    </Router>
    
  );
}

export default RouterConfig;
